package com.srs.model.info;

import java.text.DecimalFormat;

public class CsrPercent {
	private Integer agentId;
	private Integer nbCallSucceeded;
	private Integer nbCallTotal;
	private String onDate;

	private Double percentCallSucceeded = new Double(0);
	/**
	 * @return the agentId
	 */
	public Integer getAgentId() {
		return agentId;
	}

	/**
	 * @param agentId
	 *            the agentId to set
	 */
	public void setAgentId(Integer agentId) {
		this.agentId = agentId;
	}

	/**
	 * @return the nbCallSucceeded
	 */
	public Integer getNbCallSucceeded() {
		return nbCallSucceeded;
	}

	/**
	 * @param nbCallSucceeded
	 *            the nbCallSucceeded to set
	 */
	public void setNbCallSucceeded(Integer nbCallSucceeded) {
		this.nbCallSucceeded = nbCallSucceeded;
	}

	/**
	 * @return the nbCallTotal
	 */
	public Integer getNbCallTotal() {
		return nbCallTotal;
	}

	/**
	 * @param nbCallTotal
	 *            the nbCallTotal to set
	 */
	public void setNbCallTotal(Integer nbCallTotal) {
		this.nbCallTotal = nbCallTotal;
	}

	/**
	 * @return the onDate
	 */
	public String getOnDate() {
		return onDate;
	}

	/**
	 * @param onDate
	 *            the onDate to set
	 */
	public void setOnDate(String onDate) {
		this.onDate = onDate;
	}

	/**
	 * @return the percentCallSucceeded
	 */
	public Double getPercentCallSucceeded() {
		return percentCallSucceeded;
	}

	/**
	 * @return the percentCallSucceeded
	 */
	public String getPercentCallSucceededStr() {
		DecimalFormat df = new DecimalFormat("##.##");
		return df.format(percentCallSucceeded);			
	}	
	
	/**
	 * @param percentCallSucceeded the percentCallSucceeded to set
	 */
	public void setPercentCallSucceeded(Double percentCallSucceeded) {
		this.percentCallSucceeded = percentCallSucceeded;
	}
	
	
}
